﻿namespace MiniJob.Worker.Runtime;

public sealed class JobRegistration(JobTypeInformation type, MiniJobRuntimeOptions? options)
{
    public JobRegistration(JobTypeInformation type) : this(type, null)
    {
    }

    public JobTypeInformation Type { get; } = type;

    /// <summary>
    /// Gets or sets the <see cref="JobActivator" /> to use for the job. If not set the default
    /// activator of the runtime will be used.
    /// </summary>
    public JobActivator? Activator { get; set; }

    public MiniJobRuntimeOptions? TypeOptions { get; } = options;
}
